require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/userA/fans" ], {
    "0ec2": function(t, n, e) {
        e.r(n);
        var a, o = e("8864"), u = e("3668");
        for (a in u) "default" !== a && function(t) {
            e.d(n, t, function() {
                return u[t];
            });
        }(a);
        e("4a77");
        var i = e("f0c5"), o = Object(i.a)(u.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        n.default = o.exports;
    },
    "21c8": function(t, n, e) {},
    3668: function(t, n, e) {
        e.r(n);
        var a, o = e("9136"), u = e.n(o);
        for (a in o) "default" !== a && function(t) {
            e.d(n, t, function() {
                return o[t];
            });
        }(a);
        n.default = u.a;
    },
    "4a77": function(t, n, e) {
        var a = e("21c8");
        e.n(a).a;
    },
    "7ee8": function(t, n, e) {
        (function(t) {
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            e("0cda"), n(e("66fd")), t(n(e("0ec2")).default);
        }).call(this, e("543d").createPage);
    },
    8864: function(t, n, e) {
        e.d(n, "b", function() {
            return o;
        }), e.d(n, "c", function() {
            return u;
        }), e.d(n, "a", function() {
            return a;
        });
        var a = {
            uEmpty: function() {
                return e.e("uview-ui/components/u-empty/u-empty").then(e.bind(null, "b399"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, u = [];
    },
    9136: function(t, a, i) {
        (function(o) {
            Object.defineProperty(a, "__esModule", {
                value: !0
            }), a.default = void 0;
            var t, e = (t = i("a34a")) && t.__esModule ? t : {
                default: t
            };
            function r(t, n, e, a, o, u, i) {
                try {
                    var s = t[u](i), r = s.value;
                } catch (t) {
                    return e(t), 0;
                }
                s.done ? n(r) : Promise.resolve(r).then(a, o);
            }
            var u = getApp(), n = {
                data: function() {
                    return {
                        module_name: u.globalData.module_name,
                        userinfo: o.getStorageSync("userinfo"),
                        setting: o.getStorageSync("setting"),
                        index: 0,
                        page: 1,
                        fansList: [],
                        myFansCount: [],
                        scrollTop: -1,
                        goodsLoad: !0,
                        reachBottom: null,
                        load: 1,
                        fansStatus: 0,
                        scrollHeight: 0
                    };
                },
                onReady: function() {
                    var e = this;
                    o.getSystemInfo({
                        success: function(t) {
                            var n = t.windowHeight;
                            o.createSelectorQuery().select(".fans-list").boundingClientRect(function(t) {
                                e.scrollHeight = n - t.top;
                            }).exec();
                        }
                    });
                },
                onLoad: function(t) {
                    var s, n = this;
                    return s = e.default.mark(function t() {
                        return e.default.wrap(function(t) {
                            for (;;) switch (t.prev = t.next) {
                              case 0:
                                return t.next = 2, n.$onLaunched;

                              case 2:
                                n.setting = o.getStorageSync("setting"), n.userinfo = o.getStorageSync("userinfo"), 
                                o.hideLoading(), n.module_name = u.globalData.module_name, n.getData();

                              case 8:
                              case "end":
                                return t.stop();
                            }
                        }, t);
                    }), function() {
                        var t = this, i = arguments;
                        return new Promise(function(n, e) {
                            var a = s.apply(t, i);
                            function o(t) {
                                r(a, n, e, o, u, "next", t);
                            }
                            function u(t) {
                                r(a, n, e, o, u, "throw", t);
                            }
                            o(void 0);
                        });
                    }();
                },
                methods: {
                    onReach: function() {
                        "more" == this.reachBottom && this.getData();
                    },
                    changeFans: function(t) {
                        this.reachBottom = null, this.page = 1, this.index = t, this.fansList = [], this.getData(), 
                        this.scrollTop = 0;
                    },
                    getData: function(t) {
                        var n, e, a = this;
                        "end" != a.reachBottom && (o.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), n = u.globalData.util.url("entry/wxapp/fans", {
                            m: u.globalData.module_name
                        }), e = {
                            openid: o.getStorageSync("openid"),
                            type: a.index,
                            page: a.page,
                            load: a.load
                        }, o.request({
                            url: n,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: e,
                            success: function(t) {
                                1 == a.load && (a.myFansCount = t.data.myFansCount), (a.load = 0) == t.data.fansList.length ? 0 < a.fansList.length ? (a.fansStatus = 1, 
                                a.reachBottom = "end") : (a.fansStatus = 0, a.reachBottom = null) : (a.page++, a.fansStatus = t.data.fansList.length, 
                                a.fansList = a.fansList.concat(t.data.fansList), a.reachBottom = t.data.fansList.length < 10 ? "end" : "more"), 
                                o.hideLoading();
                            }
                        }));
                    }
                },
                components: {}
            };
            a.default = n;
        }).call(this, i("543d").default);
    }
}, [ [ "7ee8", "common/runtime", "common/vendor" ] ] ]);